package worldutils.huntgame.Utils;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import worldutils.huntgame.HuntGame;

public class ReloadWorldUtils {
    public static void kickAllPlayers() {
        String kickMessage = HuntGame.getMessage("reload-message");
        for (Player player : Bukkit.getOnlinePlayers()) {
            player.kickPlayer(kickMessage);
        }

        Bukkit.shutdown();
    }
}
